package presentation.rest;

import org.codehaus.jackson.JsonFactory;
import org.codehaus.jackson.map.ObjectMapper;
import presentation.twitter.TwitterService;

import javax.ws.rs.core.MediaType;
import java.util.concurrent.atomic.AtomicLong;

public class ServiceLocator {

	public final static TwitterService TWITTER = new TwitterService();

	public final static AtomicLong NEXT_TWITTER_ID = new AtomicLong(0);

	public final static JsonFactory JSON_FACTOR = new JsonFactory();

	public final static ObjectMapper OBJECT_MAPPER = new ObjectMapper();

	public final static MediaType MEDIA_TYPE_X_JAVASCRIPT_TYPE = new MediaType("application", "x-javascript");

	public final static String MEDIA_TYPE_X_JAVASCRIPT = "application/x-javascript";
}
